/**
 * 作者：陈文斌 on 2019/1/18.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Company/company_info_model.dart';
import 'package:crm/model/Company/company_ext_relate_property_model.dart';

part 'company_ext_relate_model.g.dart';

@JsonSerializable()
class CompanyExtRelateModel extends Object with _$CompanyExtRelateModelSerializerMixin{
  String Id;
  String CompanyId;
  CompanyInfoModel Company;
  String RelType;
  String RelId;
  String Keyword;
  List<CompanyExtRelatePropertyModel> Properties;

  CompanyExtRelateModel(
    this.Id,
    this.CompanyId,
    this.Company,
    this.RelType,
    this.RelId,
    this.Keyword,
    this.Properties,
  );

  @override
  factory CompanyExtRelateModel.fromJson(Map<String, dynamic> json) => _$CompanyExtRelateModelFromJson(json);
}
